{{template "../public/page_header.html" .}}

<div class="container-fluid">
    <div class="row">
        <div class="panel panel-default">
            <div class="panel-heading">
                系统设置
            </div>
            <div class="panel-body">
                <div class="table-responsive input-form news_content">
                    <form action="/{{config "String" "adminPath" ""}}/setting/goedit" method="post"
                          enctype="multipart/form-data">
                        <ul class="nav nav-tabs" role="tablist">
                            <li role="presentation" class="active"><a href="#general" role="tab"
                                                                      data-toggle="tab">通用信息</a></li>
                            <li role="presentation"><a href="#oss" role="tab" data-toggle="tab">OSS云存储配置</a></li>
                        </ul>
                        <div class="tab-content">
                            <div role="tabpanel" class="tab-pane active" id="general">
                                <ul class="form_input">
                                    <li>
                                        <span>网站标题:</span> <input type="text" class="input" name="site_title"
                                                                  value="{{.setting.SiteTitle}}"/>
                                    </li>
                                    <li><span>网站logo:</span>
                                        <input type="file" name="site_logo"/>
                                        <br/>
                                    {{if ne .setting.SiteLogo ""}}
                                        <img class="pic" src="{{.setting.SiteLogo | formatImage}}"/>
                                    {{end}}
                                    </li>
                                    <li><span>网站关键词:</span> <input type="text" class="input" name="site_keywords"
                                                                   value="{{.setting.SiteKeywords}}"/></li>
                                    <li><span>网站描述:</span> <textarea name="site_description"
                                                                     style="width:600px;">{{.setting.SiteDescription}}</textarea>
                                    </li>
                                    <li><span>商品默认图片:</span> <input type="file" name="no_picture"/>
                                        <br/>
                                    {{if ne .setting.NoPicture ""}}
                                        <img class="pic" src="{{.setting.NoPicture | formatImage}}"/>
                                    {{end}}
                                    </li>
                                    <li><span>备案信息:</span> <input type="text" class="input" name="site_icp"
                                                                  value="{{.setting.SiteIcp}}"/></li>
                                    <li><span>网站电话:</span> <input type="text" class="input" name="site_tel"
                                                                  value="{{.setting.SiteTel}}"/></li>
                                    <li><span>搜索关键词:</span> <input type="text" class="input" name="search_keywords"
                                                                   value="{{.setting.SearchKeywords}}"/></li>
                                    <li><span>统计代码:</span> <input type="text" class="input" name="tongji_code"
                                                                  value="{{.setting.TongjiCode}}"/></li>
                                </ul>
                            </div>
                            <div role="tabpanel" class="tab-pane" id="oss">
                                <ul class="form_input">
                                    <li style="color:#666; background: #eeefff; padding: 10px;">
                                        <p><strong>提示：</strong> 配置完毕Oss云存储后请在conf/app.conf中开启Oss云存储</p>
                                    </li>
                                    <li>
                                        <span>BucketName:</span> <input type="text" class="input" name="bucket_name"
                                                                        value="{{.setting.BucketName}}"/> <i>yourBucketName</i>
                                    </li>
                                    <li>
                                        <span>Appid:</span> <input type="text" class="input" name="appid"
                                                                   value="{{.setting.Appid}}"/> <i>yourAccessKeyId</i>
                                    </li>
                                    <li>
                                        <span>AppSecret:</span> <input type="text" class="input" name="app_secret"
                                                                       value="{{.setting.AppSecret}}"/> <i>yourAccessKeySecret</i>
                                    </li>
                                    <li>
                                        <span>EndPoint:</span> <input type="text" class="input" name="end_point"
                                                                      value="{{.setting.EndPoint}}"/>
                                        <i>yourEndpoint</i>
                                    </li>
                                </ul>
                            </div>
                        </div>
                        <button type="submit" class="btn btn-success product_content_btn">提交</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>

</body>
</html>